﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyMvc.BLL;
using MyMvc.IBLL;
using MyMvc.Model;
using MyMvc.Model.Models;

namespace GreenProtect.Contact
{
    public partial class contact : System.Web.UI.Page
    {
        IRelationService _relationService = new RelationService();
        protected void Page_Load(object sender, EventArgs e)
        {
            var currentRelation = _relationService.LoadEntities(c => c.ID == 1).FirstOrDefault();
            company.InnerHtml = "潍坊学院";
            address.InnerHtml = "地 址：" + currentRelation.Adress;
            telephone.InnerHtml ="电 话："+ currentRelation.Telephone1;
            chuanzhen.InnerHtml = "传 真："+currentRelation.Fax1;
            email.InnerHtml = "邮 箱："+currentRelation.Mail1;
            website.InnerHtml=currentRelation.Website1;
            web1.Attributes.Add("href", currentRelation.Website1);
            phone.InnerHtml = "手 机："+currentRelation.Telephone2;
        }
    }
}